﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucItems.ascx.cs" Inherits="ucControl_ucItems" %>
<div>
<asp:FormView ID="frmViewDetail" runat="server" Width="100%" CssClass="format">
        <ItemTemplate>
            <table id="table" style="border: 1px solid #cccccc; width: 100%" >
                <tr>
                    <td style="font-size: 12px; font-family: Tahoma">
                       <b> Thông tin ứng dụng
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("MenuChilName") %>' ForeColor="Red" ></asp:Label></b>
                    </td>
                </tr>
                <tr>
                    <td style="font-size: 12px; font-family: Tahoma; padding-top: 10px">
                        <asp:Label ID="Label2" runat="server" Text='<%#  Server.HtmlDecode(Eval("MenuChilDescription").ToString()) %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
</div>

<div>
    <ul style="margin-left: -38px">
        <asp:Repeater ID="rpItem" runat="server">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
                <table style="border: 1px solid #cccccc">
                    <tr>
                        <td rowspan="3" style="padding-left: 7px">
                            <a id="A1" runat="server" title='<%# Eval("ItemNumber") %>'
                                href='<%# "~/ChiTietSanPham.aspx?id=" + Eval("IDItem")  %>'>
                                <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/Items/" + Eval("ImageURL")+ "&width=105&heigh=64" %>'
                                    AlternateText="No Image" />
                            </a>
                        </td>
                        <td style="padding-left: 10px; padding-top: 8px">
                            <b>
                                <asp:Label ID="lbItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:Label></b>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left: 10px">
                            <asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("ItemDescription").ToString()) %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; padding-bottom: 8px">
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("IDItem")  %>' ForeColor="Red">Chi tiết</asp:HyperLink>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>
    </ul>
</div>

